package com.my.scone.controller;

import com.my.scone.config.MysqlConf;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/")
public class HelloController {
    @Resource
    private MysqlConf mysqlConf;

    @GetMapping(path = "/hello")
    public void hello(){
        System.out.println("hhh");
        System.out.println(mysqlConf.getUserName());
    }
}
